public Election::parseCandidates
Description
php
public Election->parseCandidates ( string $input [, bool $isFile = false] ): array
Import candidates from a text source.
Parameters
input: string
String or valid path to a text file.
isFile: bool
If true, the input is evaluated as a path to a text file.
Return value
(array
) List of newly registered candidate objects. Count to check if all candidates were correctly registered.
Throws:
CandidateExistsException
VoteMaxNumberReachedException